/* Base styling for larger screens */
.counter-up {
  min-height: 50vh;
  background-size: cover;
  background-attachment: fixed;
  padding: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.counter-up::before {
  position: absolute;
  content: "";
  top: -300;
  left: 0;
  height: 310px;
  width: 100%;
}

.counter-up .content {
  z-index: 1;
  position: relative;
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.counter-up .content .box {
  width: 350px;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;  
  justify-content: space-evenly;
  padding: 15px;
  background: linear-gradient(120deg, rgba(67, 44, 129, 0.8), rgba(22, 160, 133, 0.8));
  box-shadow: 0 0 5px rgba(0, 0, 0, 1);
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}

.content .box .icon {
  font-size: 50px;
  color: #e6e6e6;
  text-shadow: 0 0 4px #000000;
}

.content .box .counter {
  font-size: 25px;
  color: goldenrod;
  font-family: sans-serif;
  text-shadow: 0 0 4px #000000;
}

.content .box .text {
  font-family: 'Revamped';
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 0 5px #12a0e2;
}

@font-face {
  font-family: 'Revamped';
  src: url('/Fonts/Revamped.otf') format('woff'),
}

/* Adjustments for smaller screens */
@media screen and (max-width: 580px) {
  .counter-up .content {
    justify-content: center;
  }

  .counter-up .content .box {
    width: 100%; /* Full width on smaller screens */
    margin: 50px 0; /* Add some vertical margin between boxes */
  }
  
  .layout {
    flex-direction: column; /* Stack boxes vertically on smaller screens */
    align-items: center; /* Center the boxes on the screen */
  }
}

/* Further adjustments for laptop-sized screens */
@media screen and (min-width: 581px) and (max-width: 980px) {
  .counter-up .content {
    justify-content: space-between; /* Space between the boxes */
  }

  .counter-up .content .box {
    width: 100%; /* Two boxes side by side on larger screens */
  }

  .layout {
    flex-wrap: wrap; /* Allow boxes to wrap to the next line */
    justify-content: space-between;
    align-items: flex-start; /* Align boxes to the start of the container */
  }
}


/* Further adjustments for larger screens if needed */

@media screen and (min-width: 981px) {
  .wrapper {
    padding: 20px;
  }

  .counter-up {
    padding: 30px 20px 0 20px;
  }

  .layout {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}


.layout {
  width: 1980px;
  height: auto !important;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
